<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/aftersaleinfo/q_after_recyclelist/q_after_recycleList.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/aftersaleinfo/q_after_recyclelist/q_after_recycleList.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'After_recycleList',
                footer: "Foots",
                cnName: '售后回收明细',
                name: 'q_after_recyclelist/q_after_recycleList',
                url: "/q_after_recycleList/",
                sortName: "Voucher_sub"
            });
            const editFormFields = ref({"Goods_num":"","Remark":""});
            const editFormOptions = ref([[{"title":"备注","field":"Remark"},
                               {"title":"回收数量","required":true,"field":"Goods_num","type":"number"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'Voucher_sub',title:'售后发货单编码',type:'string',width:120,align:'left',sort:true},
                       {field:'Client_name',title:'客户名称',type:'string',bind:{ key:'无条件客户',data:[]},width:110,align:'left'},
                       {field:'Goods_sub',title:'商品编码',type:'string',width:110,align:'left'},
                       {field:'Goods_name',title:'商品名称',type:'string',width:220,align:'left'},
                       {field:'Goods_size',title:'规格型号',type:'string',width:110,align:'left'},
                       {field:'AvailableQuantity',title:'可用数量',type:'float',width:110,align:'left'},
                       {field:'Goods_num',title:'回收数量',type:'float',width:110,require:true,align:'left'},
                       {field:'After_delivery_date',title:'售后发货时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'Remark',title:'备注',type:'string',width:220,align:'left'},
                       {field:'After_recycleList',title:'ID',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'After_recycle',title:'父级ID',type:'guid',width:110,hidden:true,align:'left'},
                       {field:'AuditDate',title:'审核时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'AuditStatus',title:'审核状态',type:'int',width:110,hidden:true,align:'left'},
                       {field:'AuditID',title:'审核人员id',type:'int',width:110,hidden:true,align:'left'},
                       {field:'Auditor',title:'审核人员',type:'string',width:120,hidden:true,align:'left'},
                       {field:'CreateID',title:'创建人员id',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人员',type:'string',width:100,hidden:true,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'ModifyID',title:'修改人员id',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人员',type:'string',width:100,hidden:true,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'After_deliveryList',title:'售后发货单明细ID',type:'guid',width:110,hidden:true,require:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
